* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  padding: 16px;
  background-color: #121212;
  min-height: 100vh;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.backButton {
  font-size: 20px;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.spacer {
  width: 30px;
}

.card {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.exchangeRate {
  background: rgba(45, 45, 45, 0.8);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
}

.exchangeRateText {
  margin: 0;
  color: #e0e0e0;
  font-size: 14px;
  font-weight: 500;
}

.label {
  font-size: 12px;
  color: #e0e0e0;
  margin-bottom: 10px;
  display: block;
}

.presetAmounts {
  margin-bottom: 16px;
}

.amountOptions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.amountOption {
  background: #2a2a2a;
  border-radius: 8px;
  padding: 10px 0;
  text-align: center;
  color: #e0e0e0;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.selectedAmount {
  background: #3a5db9;
  color: #ffffff;
  border: none;
}

.amountSection {
  margin-bottom: 16px;
}

.amountInput {
  display: flex;
  align-items: center;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 0 12px;
  height: 48px;
}

.input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  color: #e0e0e0;
  outline: none;
}

.currencySymbol {
  color: #e0e0e0;
  font-weight: 500;
  margin-left: 8px;
}

.yangcoinAmount {
  background: #29324d;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  text-align: center;
}

.yangcoinText {
  margin: 0;
  color: #e0e0e0;
  font-size: 14px;
}

.yangcoinValue {
  color: #4c7cf7;
  font-weight: 600;
}

.addressSection {
  margin-bottom: 16px;
}

.addressHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.warningIcon {
  display: flex;
  align-items: center;
  color: #f7a14c;
  font-size: 12px;
}

.warningText {
  margin-left: 4px;
  color: #e0e0e0;
}

.paymentOptions {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}

.paymentOption {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  flex: 1;
}

.selectedPayment {
  background: #29324d;
  border: 1px solid #4c7cf7;
}

.paymentName {
  flex: 1;
  font-weight: 500;
  color: #e0e0e0;
  font-size: 13px;
  text-align: center;
}

.depositButton {
  width: 100%;
  height: 48px;
  background: #4c7cf7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  margin-top: 20px;
}

.depositButton:disabled {
  background: #3a3a3a;
  cursor: not-allowed;
}

.infoBox {
  background: #29324d;
  border-radius: 8px;
  padding: 12px;
  margin-top: 16px;
  margin-bottom: 16px;
}

.infoText {
  margin: 0;
  color: #b0b0b0;
  font-size: 12px;
  line-height: 1.5;
}

.recentTransactions {
  background: #1e1e1e;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.sectionTitle {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 600;
  color: #e0e0e0;
}

.emptyState {
  text-align: center;
  color: #b0b0b0;
  padding: 20px 0;
  font-size: 14px;
}

/* 支付结果页样式 */
.resultContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 16px;
  background: #1e1e1e;
}

.resultIcon {
  font-size: 60px;
  margin-bottom: 20px;
}

.resultSuccess {
  color: #4c7cf7;
}

.resultFailed {
  color: #f75c5c;
}

.resultTitle {
  font-size: 18px;
  font-weight: 600;
  margin: 16px 0 8px;
  color: #e0e0e0;
}

.resultDesc {
  font-size: 14px;
  color: #b0b0b0;
  text-align: center;
  margin-bottom: 24px;
}

.resultAmount {
  width: 100%;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.resultAmountLabel {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 8px;
  text-align: center;
}

.resultAmountValue {
  font-size: 24px;
  font-weight: 600;
  color: #e0e0e0;
  text-align: center;
}

.resultButtons {
  display: flex;
  gap: 12px;
  width: 100%;
}

.resultButton {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primaryButton {
  background: #4c7cf7;
  color: white;
  border: none;
}

.secondaryButton {
  background: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #3a3a3a;
}

.tabs {
  display: flex;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 16px;
}

.tab {
  padding: 12px 16px;
  font-size: 14px;
  color: #b0b0b0;
  cursor: pointer;
  position: relative;
  transition: color 0.3s;
}

.activeTab {
  color: #4c7cf7;
  font-weight: 500;
}

.coinSelector {
  margin-bottom: 16px;
}

.coinOptions {
  display: flex;
  gap: 10px;
  overflow-x: auto;
}

.coinOption {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #2a2a2a;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.coinOption:hover {
  background: #333333;
}

.selectedCoin {
  background: #29324d;
  border: 1px solid #4c7cf7;
}

.coinIcon {
  font-size: 16px;
  margin-right: 8px;
  color: #b0b0b0;
}

.qrCodeContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 20px;
}

.qrCodePlaceholder {
  width: 160px;
  height: 160px;
  background: #3a3a3a;
  border-radius: 8px;
}

.addressContainer {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #2a2a2a;
  border-radius: 8px;
  padding: 16px;
}

.addressText {
  background: #1e1e1e;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #e0e0e0;
  word-break: break-all;
  margin-bottom: 12px;
  border: 1px solid #333333;
}

.copyButton {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4c7cf7;
  color: white;
  border: none;
  border-radius: 6px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.copyButton:active {
  background: #3a67d6;
}

/* 洋币余额卡片样式 */
.balanceCard {
  background: linear-gradient(135deg, #243b78, #3a5db9);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  color: white;
  position: relative;
  overflow: hidden;
}

.balanceCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E") repeat;
  opacity: 0.2;
}

.balanceHeader {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.balanceAmount {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 0;
}

.loading {
  font-size: 16px;
  opacity: 0.7;
}

.amountValue {
  font-size: 28px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.amountUnit {
  font-size: 16px;
  margin-left: 4px;
  opacity: 0.8;
} 